<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%@ taglib prefix="sx" uri="/struts-dojo-tags"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>My JSP 'showDept.jsp' starting page</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<style type="text/css">
td{
text-align: center;
}
</style>
</head>

<body>
	<table>
		<tr>
			<th>编号</th>
			<th>部门</th>
			<th  style="width: 200px;">操作</th>
		</tr>
		<s:iterator value="deptList" var="dept">

			<TR>
				<td>${dept.deptId}</td>
				<td>${dept.deptName }</td>
				<td><a href="dropDept?dept.deptId=${dept.deptId}">删除</a>&nbsp;<a
					href="editDept?dept.deptId=${dept.deptId}">修改</a></td>
			</TR>
		</s:iterator>
	</table>
	<a href="addDept">添加</a>
</body>
</html>
